cppforever.com
Home
Syntax rules
Preprocessor
Preprocessor and the '#' character
Go Up
Preprocessor and the '#' character
#
is
not
part of the C++ grammar for expressions or statements—it's handled by the
preprocessor
.
You
cannot
use
#
in the middle of a statement or expression.
You
cannot
split a
#define
or
#include
across multiple lines unless using a backslash (
\
) for line continuation.